  1 package main
  2
  3 import (
  4     "fmt"
  5 )
  6
  7 const (
  8     n = 1 << iota
  9     j = 3 << iota
 10     k
 11     l
 12 )
 13
 14 func main(){
 15     const (
 16         a = iota
 17         b
 18         c
 19         d = "ha"
 20         e
 21         f = 100
 22         g
 23         h = iota
 24         i
 25     )
 26
 27     const (
 28         x = iota
 29         y
 30         z
 31     )
 32     fmt.Println(a,b,c,d,e,f,g,h,i,x,y,z)
 33
 34     fmt.Println("n = ", n);
 35     fmt.Println("j = ", j);
 36     fmt.Println("k = ", k);
 37     fmt.Println("l = ", l);
 38 }
